home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 21
/
Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso
/
Aminet
/
comm
/
maxs
/
KFBSpeedup.lha
/
KFBspeedup.doc
< prev
next >
Wrap
Text File
|
1997-08-07
|
6KB
|
189 lines
KFB Speedup patches
~~~~~~~~~~~~~~~~~~~
(C) Colin Wilson Sysop of Amiga Phoenix BBS
(my phone number is changing soon and I don't know what it is yet !)
Email : phoenixbbs@cableinet.co.uk
Requirements :
~~~~~~~~~~~~
Maxs BBS and KFB v1.1
What it does :
~~~~~~~~~~~~
These programs speed up KFB by splitting the large kfb.data file into
smaller files, with one 'new' file per file area, containing only the files
in any one area. Two new doors PER AREA are required, and will be made by
the programs in this archive.
Unfortunately, some alterations to your config will be necessary, and
the patched doors will need to be copied to KFB: - both a KFBLIST and
KFBDOWNLOAD door will be patched for each section to look for the new small
data file.
This use of a door for each file area also means that the marked files
* MUST * be downloaded within each section, because the reference pointers
held in KFB:users/ will become incorrect for any other area, and will point
to the wrong files (because it will be looking at the wrong data file).
One nice thing is that you can remove this at any time and the original
kfb.data file remains untouched - it's only ever read by the other programs
and NEVER altered.
Why ? :
~~~~~
It's bloody fast ! - better for very large filebases where the screen
might otherwise be blank for 20 seconds or something while it scans the data
file.
Limitations :
~~~~~~~~~~~
1) A new upload will ONLY appear on a linked list or a new file scan
(using the original kfblist door) until the data files are updated.
2) Files *MUST* be downloaded from an individual area if they were
marked in an individual area to save marked file confusion.
3) Unless I wrote a patch for the kfbedit door (ask if you want one)
the kfbedit door doesn't work properly now unless it's used via
the linked section (it looks at the kfb.data file, not the small
fast ones). As before, you'd need one for every file area.
I'd suggest removing it from individual file areas to save hassle !
4) Edit or mark files for deletion from the linked section ONLY !!!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^
|
Important ;-)
To use :
~~~~~~
First, run the KFBcreate_data program
(this makes a small reference file in RAM: for the others)
Make a directory in KFB: called 'dat' ie. KFB:DAT/
The remaining programs can then be run in any order
The patched doors are made in RAM: and should be copied to KFB:
It would be useful to assign a dummy file area FB: to RAM: or
something just in case something happens like a user changing
areas with files marked from a previous area.
~~~~~~~~~~
For day-to-day upkeep, the only programs you'll need to run are the
KFBcreate_data and split_kfb_areas.
This can be done daily automatically via a script from fido cfg,
but neither take more than a minute or so, and can be run from
workbench whenever the fancy takes you !
What the programs do :
~~~~~~~~~~~~~~~~~~~~
KFBcreate_data
Makes a small reference file in RAM: - this program
remains unchanged from it's original use as a data
file creator for use by my filelist generator.
The information held in this file relates to file
areas, and the offset from the start of the file is
a pointer to the file data in the KFB.DATA file.
split_kfb_areas
Does exactly that - using the data file, it will
create an individual file for each area, and put it
in KFB:DAT/ The filename will be in this format:
FBxx where xx is the file area held in that file.
A seperate file will be made for every file area.
make_kfbdownload_patches
Reads the original kfbdownload door, and will alter
the search path for it's data file. A seperate new
door will be 'created' for every file area.
make_kfblist_patches
As make_kfbdownload_patches but for the kfblist door
Changes to your config :
~~~~~~~~~~~~~~~~~~~~~~
The linked section FB00 should remain the same, using the original
kfblist and kfbdownload door.
All other areas need to be altered to include the area number after
the door name, ie.
R 34 0 5 10000 KFB:KFBLIST20 R20
^^
that runs the specific door for that section
and is the only addition needed :)
You will need to add the area digits to both the forward / reverse /
search options where applicable, and also to the kfbdownload option for
that area, ie.
D 34 0 5 10000 KFB:KFBDOWNLOAD20
Credits & greetz :
~~~~~~~~~~~~~~~~
Krion & Accolyte (without whom we wouldn't have KFB!)
My wife (for not giving the computer a bucket of water despite threats!)
Spanner
Protoda
Rooster
Anyone else using Maxs :) (ESPECIALLY with KFB !!!!)
Bugs :
~~~~
None known that weren't already present (although extremely rare) in
the original doors (none witnessed during tests!).
If a user changes areas with marked files, then tries to download from
a different area, it appears that the marked files list is deleted when it
hits a file that's out of 'range' in the user data in KFB:users/
Answer : put a msg on screen to tell them to download from each area,
and if they STILL can't get it right, it's their problem !